.chat-room {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  border: 3px solid #ccc;
  margin-top: 30px;
}
.chat-room p{
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 25px;
}

.message-list {
  flex-grow: 1;
  overflow-y: scroll;
  scrollbar-width: thin;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.received-message {
  border-radius: 10px;
  background-color: lightgray;
  padding: 10px;
  margin-right: 80px;
}

.sent-message {
  border-radius: 10px;
  background-color: lightgreen;
  padding: 10px;
  margin-left: 80px;
}

.author {
  font-weight: bold;
  margin-right: 10px;
}

.content {
  white-space: pre-wrap;
}

.timestamp {
  font-size: smaller;
  color: gray;
  position: relative;
  right: 0px;
  left: 120px;
  top: 10px;
  color: #fff;
  font-size: 12px;
}

.input-container {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

textarea {
  flex-grow: 1;
  resize: none;
  min-height: 100px;
  border: none;
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
}

button {
  margin-left: 10px;
  background-color: lightblue;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
}